package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;


import com.jic.market.entity.PromotionBargain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 砍价活动表
 * @author : 
 * @email : 
 * @since : 2020-09-10 06:18:49
 * @version : v1.0.0
 */
@Mapper
public interface  PromotionBargainMapper {

    long insert(PromotionBargain promotionBargain);

    long delete(Long id);

    long update(PromotionBargain promotionBargain);

    PromotionBargain queryByPrimaryKey(Long id);

    List<PromotionBargain> query(PromotionBargain promotionBargain);

    List<PromotionBargain> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("promotionBargain") PromotionBargain promotionBargain);

    long queryPageCount(PromotionBargain promotionBargain);
}